package com.shuangti;

import java.util.Random;

public class Test1 {
    public static void main(String[] args) {
       /* for (int i = 0; i < 4; i++){
            for (int j = 0; j < 4; j++) {
                System.out.print("*");
            }
            System.out.println();
        }*/

        //正三角
        /*for (int i = 0; i < 4; i++) {
            for (int j = 0; j < i+1; j++) {
                System.out.print("*");
            }
            System.out.println();
        }*/

        //倒三角
        /*for (int i = 0; i < 4; i++) {
            for (int j = 0; j < 3-i; j++) {
                System.out.print(" ");
            }
            for (int j = 0; j < i+1; j++) {
                System.out.print("*");
            }
            System.out.println("");
        }*/

        //break结束整个循环
      /*  for (int i = 0; i < 5; i++) {
            if (i==3){
                break;
            }
            System.out.println("我爱你");
        }*/

        //结束本次循环
       /* for (int i = 0; i < 5; i++) {
            if (i==3){
                continue;
            }
            System.out.println("第"+(i+1)+"天，我爱洗碗");
        }*/

        //随机数random，公式  （max-min+1)+min
        //生成8-10的随机数
      /*  Random random = new Random();
        int re = random.nextInt(10-8+1)+8;
        System.out.println(re);*/


    }
}
